$stakes-table-th-background: #f5f6fa !default;
$stakes-table-cell-separation: 25px !default;
$stakes-link-color: $primary !default;

.stakes-table-container {
  max-width: 100%;
  overflow-x: auto;
  width: 100%;
}

.addresses-table-container {
  margin-left: -30px;
  margin-right: -30px;
  .stakes-table-container {
    table {
      width: 100%;
      th:first-child {
        padding-left: 25px;
      }
      td:first-child {
        padding-left: 25px;
      }
    }
  }
  .color-lighten {
    color: #828ba0;
  }
}

// Loader
.table-content-loader {
  display: inline-block;
  height: 24px;
  width: 100%;
  border-radius: 4px;
  background-color: #f5f6fa;
  overflow: hidden;
  position: relative;
  &:before {
    width: inherit;
    height: inherit;
    content: '';
    position: absolute;
    background: linear-gradient(to right, #f5f6fa 2%, #eee 18%, #f5f6fa 33%);
    animation-duration: 1.7s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-name: placeholderAnimate;
    background-size: 1300px;
  }
}

@keyframes placeholderAnimate {
  0%{ background-position: -650px 0; }
  100% { background-position: 650px 0; }
}

.table-content-pseudo {
  td {
    &:last-child {
      padding-right: 24px !important;
    }
  }
}

.stakes-table {
  min-width: fit-content;
  width: 100%;
}

.stakes-table-head {
  display: flex;
  width: 100%;
  min-width: 930px;
  padding: 0 15px;
  background-color: $stakes-table-th-background;
  color: #a3a9b5;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.2;
  text-align: left;
}

.stakes-table-body {
  padding: 0 15px;
  min-width: 930px;
  min-height: 311px;

  .refresh-informer {
    text-align: right;
    padding-top: 15px;
    padding-right: 15px;
    display: none;

    a {
      color: $primary;
      text-decoration: underline;

      &:hover {
        text-decoration: none;
      }
    }
  }
}

.stakes-table-th {
  background-color: $stakes-table-th-background;
  color: #a3a9b5;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.2;
  text-align: left;

  &:first-child {
    min-width: 15px;
  }
}

.stakes-table-th-content {
  align-items: center;
  display: flex;
  justify-content: flex-start;
  padding: 21px $stakes-table-cell-separation 21px 0;
  position: relative;
  z-index: 0;

  .i-tooltip {
    position: relative;
    top: -2px;
  }
}

.stakes-th-text {
  margin-right: 10px;
  white-space: nowrap;
  text-align: center;
}

.stakes-td {
  border-bottom: 1px solid #f5f6fa;
  font-size: 14px;
  font-weight: normal;
  height: 60px;
  line-height: 1.5;
  padding-right: $stakes-table-cell-separation;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;

  &:last-child {
    padding-right: 0;
  }

  .stakes-tr-banned & {
    background-color: $stakes-banned-background;
    color: $stakes-banned-color;
  }

  .stakes-td-banned-info {
    display: block;
    float: left;
    padding-right: 30px;
  }
}

.stakes-cell {
  display: flex;
  align-items: center;
}

.stakes-td-order {
  min-width: 50px;
  padding-left: 30px;
  text-align: left;
}

.stakes-td-link-style {
  color: $stakes-link-color;
  cursor: pointer;

  .stakes-tr-banned & {
    color: $stakes-banned-color;
  }
}

.stakes-tr-banned td:last-child {
  text-align: right;
  padding-right: 30px;
}

.stakes-table {
  .check-tooltip {
    &:hover {
      .check-tooltip-circle {
        fill: $secondary;
      }
    }
  }
  .stakes-tr-banned {
    .check-tooltip {
      .check-tooltip-circle {
        fill: rgba($stakes-banned-color, .15);
      }
      .check-tooltip-check {
        fill: $stakes-banned-color;
      }
      &:hover {
        .check-tooltip-circle {
          fill: $stakes-banned-color;
        }
        .check-tooltip-check {
          fill: #fff;
        }
      }
    }
  }
}
